﻿@{
    ViewBag.Title = "Change password";
}
@model RedSand.Site.Models.ChangePasswordModel
<script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<div id="register">
    <h1>
        Change password
    </h1>
    <div id="error_msg">
    </div>
    @if (User.Identity.IsAuthenticated)
    {
        using (Html.BeginForm("feChangePassword", "Account"))
        {
            @Html.ValidationSummary(true)
            <label>Old password</label>
            @Html.PasswordFor(m => m.OldPassword)
            <div class="clr"></div>
            @Html.ValidationMessageFor(m => m.OldPassword)
            <label>New password</label>
            @Html.PasswordFor(m => m.NewPassword)
            <div class="clr"></div>
            @Html.ValidationMessageFor(m => m.NewPassword)
            <label>Confirm password</label>
            @Html.PasswordFor(m => m.ConfirmPassword)
            <div class="clr"></div>
            @Html.ValidationMessageFor(m => m.ConfirmPassword)
            <input width="63px" type="submit" height="21px" value="Change" class="btn" />
            <div class="clr"></div>
        }
    }
</div>
